package com.yunsc.order.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 订单支付DTO
 * @date: 2024-05-20 11:40
 */
@Data
public class OrderPayDTO {
    @NotNull(message = "订单id不能为空", groups = {ValidationGroups.Update.class})
    @JsonProperty("orderId")
    private int orderId;
    private String method;
    private String client;

    private ExtraDTO extra;

    @Data
    public static class ExtraDTO {
        // 支付成功后返回的页面
        @JsonProperty("returnUrl")
        private String returnUrl;
    }
}
